<div class="shadow">

  <fieldset id="agrupacion">
    <legend>Detalles del Traslado</legend>
<p>
  <b>Descripcion:</b>
  <%= @cultural_heritage_transfer.description %>
</p>
<br/>

<p>
  <b>Fecha Inicio:</b>
  <%= @cultural_heritage_transfer.startdate %>
</p>
<br/>
<p>
  <b>Fecha Fin:</b>
  <%= @cultural_heritage_transfer.enddate %>
</p>
<br/>
<p>
  <b>Fecha de Modificación:</b>
  <%= @cultural_heritage_transfer.updated_at %>
</p>
<br/>
<p>
  <b>Estado:</b>
  <% if @cultural_heritage_transfer.state==0 %>
  <td>
    <%= 'Registrado'%>
  </td>
<%end%>
<% if @cultural_heritage_transfer.state==1 %>
  <td>
    <%= 'En traslado'%>
  </td>
<%end%>
<% if @cultural_heritage_transfer.state==2 %>
  <td>
    <%= 'Entregado'%>
  </td>
<%end%>
</p>

<br/>
<p>
  <b>Origen:</b>
  <%= @cultural_heritage_transfer.obj_cultural_institution_origin.name %>
</p>

<br/>
<p>
  <b>Destino:</b>
  <%= @cultural_heritage_transfer.obj_cultural_institution_destiny.name %>
</p>

<br/>
<p>
  <b>Responsable de recepción</b>
  <%= @cultural_heritage_transfer.obj_responsable.name %>
</p>
<br/>
<%= link_to 'Regresar', cultural_heritage_transfers_path %>

</fieldset>

    <fieldset id="agrupacion">
    <legend>Patrimonios Trasladados</legend>
<p id="notice"><%= notice %></p>

<table class="paginated_table sorted_table">
  <thead>
    <tr>
      <th>Código</th>
      <th>Patrimonio</th>
    </tr>
  </thead>

  <% @cultural_heritage_transfer.list_heritage_x_transfer.each do |heritage_x_transfer| %>
      <tbody>
        <tr>
          <td><%= heritage_x_transfer.obj_cultural_heritage.id %></td>
          <td><%= heritage_x_transfer.obj_cultural_heritage.name %></td>
        </tr>
      </tbody>
    <% end %>
</table>
</fieldset>


</div>
